package lapsnake.model.expr;

import lapsnake.model.*;
import lapsnake.model.data.ChildField;
import lapsnake.model.data.*;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.*;

/**Wrapper class with helper functions for List nodes*/
public class LapList extends LapExpression {
	ChildList<LapExpression> elements = new ChildList<>(this, LapExpression.class, true);
	
	public LapList(PyAST pyAST, ChildField<? super LapList> parent, List node) throws PropertyVetoException {
		super(pyAST, parent, node);
		ASTHelperFactory.makeHelpers(pyAST, elements, node.getInternalElts());
		buildTextNodes(node);
	}
}
